﻿using System;
using System.Collections.Generic;

using System.Text;

namespace Rance.Battle
{
    class 战车AI_击杀 : 战车AI
    {
        protected override 角色 GetTarget(List<角色> targetList, 队伍状况 队伍状况)
        {
            List<角色> tempList = new List<角色>();
            foreach (var item in targetList)
            {
                if (item.兵种.Name == "步卒")
                    continue;

                tempList.Add(item);
            }

            if (tempList.Count != 0)
                targetList = tempList;

            targetList.Sort((v1, v2) => v1.兵力.CompareTo(v2.兵力));
            targetList.Reverse();

            return targetList[0];
        }

        private static 战车AI_击杀 instance = new 战车AI_击杀();
        public new static 战车AI_击杀 GetInstance()
        {
            return instance;
        }
    }
}
